import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * company 重庆庆云石油工程技术有限责任公司
 * FileName Main
 * Package PACKAGE_NAME
 * Description
 * author lutianbo
 * create 2018-05-09 11:54
 * version V1.0
 */
public class Main {
    public static void main(String[] args) {
//        HelloWorld helloWorld = new HelloWorld();
//        helloWorld.setName("妹子！");
//        helloWorld.sayHello();
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-config.xml");
        HelloWorld helloWorld = (HelloWorld) applicationContext.getBean("helloWorld");
        helloWorld.sayHello();
    }
}